<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>地铁跑酷 - 网页版</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="game-container">
        <div class="game-header">
            <div class="score-board">
                <span>得分: <span id="score">0</span></span>
                <span>最高分: <span id="high-score">0</span></span>
            </div>
            <div class="game-controls">
                <button id="pause-btn">暂停</button>
                <button id="restart-btn">重新开始</button>
            </div>
        </div>
        
        <canvas id="gameCanvas" width="800" height="600"></canvas>
        
        <div class="game-instructions">
            <h3>游戏说明</h3>
            <p>使用方向键控制角色：</p>
            <ul>
                <li>↑ - 跳跃</li>
                <li>↓ - 下滑</li>
                <li>← - 左移</li>
                <li>→ - 右移</li>
            </ul>
        </div>
        
        <div id="gameOverModal" class="modal hidden">
            <div class="modal-content">
                <h2>游戏结束</h2>
                <p>最终得分: <span id="final-score">0</span></p>
                <p>历史最高: <span id="modal-high-score">0</span></p>
                <button id="restart-game-btn">再来一局</button>
            </div>
        </div>
    </div>

    <script src="game.js"></script>
</body>
</html>
